import request from "@/utils/request"
export const getAllApi = (commodityCode, name, category, pageNum, pageSize) => {
  return request.get(`/item/list`, commodityCode, name, category, pageNum, pageSize)
}
export const addApi = (data) => {
  return request.post(`/item/add`, data)
}

export const getSkuInfoApi = () => {
  return request.get(`/item/getSkuInfoNoPages`)
}

export const getSkuApi = (code, title, pageNum, pageSize) => {
  return request.get(`/item/getSkuInfo?code=${code}&title=${title}&pageNum=${pageNum}&pageSize=${pageSize}`)
}